<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户管理</title>
    <link rel="stylesheet" th:href="@{/static/css/layui.css}" >
</head>
<body>
    <script th:if="${session.tUser.URole eq '0'}">window.location.href="/index"</script>

    <form class="layui-form">
        <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-inline">
                <input type="text" name="uAccount" value="" placeholder="请输入账号" autocomplete="off" class="layui-input uAccount">
            </div>

            <label class="layui-form-label">姓名</label>
            <div class="layui-input-inline">
                <input type="text" name="uName" value="" placeholder="请输入姓名" autocomplete="off" class="layui-input uName">
            </div>

            <label class="layui-form-label">性别</label>
            <div class="layui-input-inline">
                <select class="uSex" name="uSex">
                    <option></option>
                    <option value="0">男</option>
                    <option value="1">女</option>
                </select>
            </div>

            <label class="layui-form-label">手机号</label>
            <div class="layui-input-inline">
                <input type="text" name="uPhone" value="" placeholder="请输入手机号" autocomplete="off" class="layui-input uPhone">
            </div>

            <label class="layui-form-label">出生日期</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input uBirthday" value="" name="uBirthday"  autocomplete="off"  placeholder="yyyy-MM-dd">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">角色</label>
            <div class="layui-input-inline">
                <select class="uRole" name="uRole">
                    <option></option>
                    <option value="0">学生</option>
                    <option value="1">管理员</option>
                </select>
            </div>

            <label class="layui-form-label">状态</label>
            <div class="layui-input-inline">
                <select class="uStatus" name="uStatus">
                    <option></option>
                    <option value="0">未启用</option>
                    <option value="1">启用</option>
                </select>
            </div>

            <div class="layui-input-inline" style="margin-left: 65px;">
                <button type="button" class="layui-btn layui-btn-normal do_search">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>

    <table class="layui-hide"  id="testTable" lay-data="{id: 'testTable'}" lay-filter="test"></table>

    <script type="text/html" id="toolbarDemo">
        <div class="layui-btn-container">
            <button class="layui-btn layui-btn-sm" lay-event="addUser">添加用户</button>
            <button class="layui-btn layui-btn-sm" lay-event="reloadPage">刷新</button>
        </div>
    </script>

    <script type="text/html" id="barDemo">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="updateRole">角色</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="ban">状态</a>
        <a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="reset">密码重置</a>
    </script>

    <script type="text/javascript" th:src="@{/static/js/jquery-3.2.1.min.js}"></script>
    <script type="text/javascript" th:src="@{/static/layui.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/mouseClick.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/admin/userList.js}"></script>
</body>
</html>